-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filter in pumps #1546
base: master
Are you sure you want to change the base?
Filter in pumps #1546
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your hard work. There are few areas which needs adjustment and one big question regarding performance
src/main/java/gregtech/common/metatileentities/electric/MetaTileEntityPump.java
Outdated
Show resolved
Hide resolved
src/main/java/gregtech/common/metatileentities/electric/MetaTileEntityPump.java
Show resolved
Hide resolved
src/main/java/gregtech/common/metatileentities/electric/MetaTileEntityPump.java
Show resolved
Hide resolved
src/main/java/gregtech/common/metatileentities/electric/MetaTileEntityPump.java
Show resolved
Hide resolved
src/main/java/gregtech/common/metatileentities/electric/MetaTileEntityPump.java
Show resolved
Hide resolved
I have edited the opening comment to link the related issue, so that it will be closed when this is merged. |
So what do you think of the current state of this PR @LAGIdiot ? is there any other changes needed or anything else ? |
amountIterated++; | ||
} | ||
checkPos = blocksToCheck.poll(); | ||
private BlockPos getValidPos(Deque<BlockPos> posDeque) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The passed argument is unused in this method. Any reason for not removing it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a copy paste fail the arg should get used
What:
Added support for liquid filters in pumps (machines)
How solved:
Added a fluid filter widget to the UI, check for liquid type when adding them to the queue and just before pumping the block (to avoid bug in case of block replacement or filter update). Invalidate the queue when switching filter from black/whitelist to white/blacklist and removing/adding the filter.
Outcome:
Closes #1532. Adds a Fluid Filter slot to the pump
Additional info:
Screenshots of UI :
Possible compatibility issue:
None Expected.